﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for BUS_Document
/// </summary>
public class BUS_Document : DAL_Document
{
    DataTable dt = new DataTable();
    public DataTable BUS_Document_getDataByTeacherid(string tid)
    {
        try
        {
            dt = DAL_Document_getDataByTeacherid(tid);
        }
        catch
        {
        }
        return dt;
    }
    public DataTable BUS_Document_getDataById(int id)
    {
        try
        {
            dt = DAL_Document_getDataById(id);
        }
        catch
        {
        }
        return dt;
    }
    public DataTable BUS_Document_getMaxId()
    {
        try
        {
            dt = DAL_Document_getMaxId();
        }
        catch
        {
        }
        return dt;
    }
    public Boolean BUS_Document_Insert(DTO_Document obj)
    {
        try
        {

            if (DAL_Document_Insert(obj))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        catch
        {
            return false;
        }
    }
    public Boolean BUS_Document_Update(DTO_Document objC)
    {
        try
        {

            if (DAL_Document_Update(objC))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        catch
        {
            return false;
        }
    }
    public Boolean BUS_Document_addtodel(int id)
    {
        try
        {
            DAL_Document_addtodel(id);
        }
        catch
        {
            return false;
        }
        return true;
    }
    public Boolean BUS_Document_del()
    {
        try
        {
            DAL_Document_del();
        }
        catch
        {
            return false;
        }
        return true;
    }
}